home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-05-01 | 3.5 KB | 183 lines | [TEXT/MPS ] |
- ;
- ; File: DriverSynchronization.a
- ;
- ; Contains: Driver Synchronization Interfaces.
- ;
- ; Version: Technology: Sustem 7.5 and 8
- ; Release: Universal Interfaces 3.0d3 on Copland DR1
- ;
- ; Copyright: © 1984-1996 by Apple Computer, Inc. All rights reserved.
- ;
- ; Bugs?: If you find a problem with this file, send the file and version
- ; information (from above) and the problem description to:
- ;
- ; Internet: apple.bugs@applelink.apple.com
- ; AppleLink: APPLE.BUGS
- ;
- ;
- IF &TYPE('__DRIVERSYNCHRONIZATION__') = 'UNDEFINED' THEN
- __DRIVERSYNCHRONIZATION__ SET 1
-
- IF &TYPE('__CONDITIONALMACROS__') = 'UNDEFINED' THEN
- include 'ConditionalMacros.a'
- ENDIF
- IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
- include 'Types.a'
- ENDIF
- IF FOR_SYSTEM8_PREEMPTIVE THEN
- IF &TYPE('__SYNCHRONIZATION__') = 'UNDEFINED' THEN
- include 'Synchronization.a'
- ENDIF
- ENDIF
- ;
- ; extern Boolean CompareAndSwap(UInt32 oldVvalue, UInt32 newValue, UInt32 *OldValueAdr)
- ;
- IF GENERATINGCFM THEN
- IMPORT_CFM_FUNCTION CompareAndSwap
- ENDIF
-
- ;
- ; extern Boolean TestAndClear(UInt32 bit, UInt8 *startAddress)
- ;
- IF GENERATINGCFM THEN
- IMPORT_CFM_FUNCTION TestAndClear
- ENDIF
-
- IF FOR_SYSTEM7_ONLY THEN
- ;
- ; extern Boolean TestAndSet(UInt32 bit, UInt8 *startAddress)
- ;
- IF GENERATINGCFM THEN
- IMPORT_CFM_FUNCTION TestAndSet
- ENDIF
-
- ;
- ; extern SInt8 IncrementAtomic8(SInt8 *value)
- ;
- IF GENERATINGCFM THEN
- IMPORT_CFM_FUNCTION IncrementAtomic8
- ENDIF
-
- ;
- ; extern SInt8 DecrementAtomic8(SInt8 *value)
- ;
- IF GENERATINGCFM THEN
- IMPORT_CFM_FUNCTION DecrementAtomic8
- ENDIF
-
- ;
- ; extern SInt8 AddAtomic8(SInt32 amount, SInt8 *value)
- ;
- IF GENERATINGCFM THEN
- IMPORT_CFM_FUNCTION AddAtomic8
- ENDIF
-
- ;
- ; extern UInt8 BitAndAtomic8(UInt32 mask, UInt8 *value)
- ;
- IF GENERATINGCFM THEN
- IMPORT_CFM_FUNCTION BitAndAtomic8
- ENDIF
-
- ;
- ; extern UInt8 BitOrAtomic8(UInt32 mask, UInt8 *value)
- ;
- IF GENERATINGCFM THEN
- IMPORT_CFM_FUNCTION BitOrAtomic8
- ENDIF
-
- ;
- ; extern UInt8 BitXorAtomic8(UInt32 mask, UInt8 *value)
- ;
- IF GENERATINGCFM THEN
- IMPORT_CFM_FUNCTION BitXorAtomic8
- ENDIF
-
- ENDIF
- ;
- ; extern SInt16 IncrementAtomic16(SInt16 *value)
- ;
- IF GENERATINGCFM THEN
- IMPORT_CFM_FUNCTION IncrementAtomic16
- ENDIF
-
- ;
- ; extern SInt16 DecrementAtomic16(SInt16 *value)
- ;
- IF GENERATINGCFM THEN
- IMPORT_CFM_FUNCTION DecrementAtomic16
- ENDIF
-
- ;
- ; extern SInt16 AddAtomic16(SInt32 amount, SInt16 *value)
- ;
- IF GENERATINGCFM THEN
- IMPORT_CFM_FUNCTION AddAtomic16
- ENDIF
-
- ;
- ; extern UInt16 BitAndAtomic16(UInt32 mask, UInt16 *value)
- ;
- IF GENERATINGCFM THEN
- IMPORT_CFM_FUNCTION BitAndAtomic16
- ENDIF
-
- ;
- ; extern UInt16 BitOrAtomic16(UInt32 mask, UInt16 *value)
- ;
- IF GENERATINGCFM THEN
- IMPORT_CFM_FUNCTION BitOrAtomic16
- ENDIF
-
- ;
- ; extern UInt16 BitXorAtomic16(UInt32 mask, UInt16 *value)
- ;
- IF GENERATINGCFM THEN
- IMPORT_CFM_FUNCTION BitXorAtomic16
- ENDIF
-
- ;
- ; extern SInt32 IncrementAtomic(SInt32 *value)
- ;
- IF GENERATINGCFM THEN
- IMPORT_CFM_FUNCTION IncrementAtomic
- ENDIF
-
- ;
- ; extern SInt32 DecrementAtomic(SInt32 *value)
- ;
- IF GENERATINGCFM THEN
- IMPORT_CFM_FUNCTION DecrementAtomic
- ENDIF
-
- ;
- ; extern SInt32 AddAtomic(SInt32 amount, SInt32 *value)
- ;
- IF GENERATINGCFM THEN
- IMPORT_CFM_FUNCTION AddAtomic
- ENDIF
-
- ;
- ; extern UInt32 BitAndAtomic(UInt32 mask, UInt32 *value)
- ;
- IF GENERATINGCFM THEN
- IMPORT_CFM_FUNCTION BitAndAtomic
- ENDIF
-
- ;
- ; extern UInt32 BitOrAtomic(UInt32 mask, UInt32 *value)
- ;
- IF GENERATINGCFM THEN
- IMPORT_CFM_FUNCTION BitOrAtomic
- ENDIF
-
- ;
- ; extern UInt32 BitXorAtomic(UInt32 mask, UInt32 *value)
- ;
- IF GENERATINGCFM THEN
- IMPORT_CFM_FUNCTION BitXorAtomic
- ENDIF
-
- ENDIF ; __DRIVERSYNCHRONIZATION__
-
-